package composite.example;

public class FinanceDepartment extends Company {

    public FinanceDepartment(){}

    public FinanceDepartment(String name){
        this.name = name;
    }

    @Override
    public void add(Company c) {

    }

    @Override
    public void remove(Company c) {

    }

    @Override
    public void display(int depth) {
        System.out.println(depth + "-----" + name);
    }

    @Override
    public void lineOfDuty() {
        System.out.println(name + "  公司财务收支管理");
    }
}
